package com.lzx.iteam.bean;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * **********************************
 * User: zhangshuai
 * Date: 2017年 01月 11日
 * Time: 下午2:24
 *
 * @QQ : 1234567890
 * **********************************
 */
public class SalaryRuleBean implements Serializable {

    /**
     * 当 值为 -1 时 取默认值
     */
    private float p_pension_pc;            // 个人养老百分比
    private float p_medical_pc;            // 个人医疗百分比
    private float p_medical_count;         // 个人医疗数
    private float p_provident_fund_pc;     // 个人公积金百分比
    private float p_unemployment_pc;       // 个人失业百分比

    private float c_pension_pc;            // 公司养老百分比
    private float c_medical_pc;            // 公司医疗百分比
    private float c_provident_fund_pc;     // 公司公积金百分比
    private float c_unemployment_pc;       // 公司失业百分比
    private float c_injury_pc;             // 公司工伤百分比
    private float c_birth_pc;              // 公司生育百分比

    private float meal_allowance;      // 餐补
    private float business_allowance;  // 出差补贴
    private float overtime_allowance;  // 加班补助
    private float late_fine;           // 迟到扣款
    private float leave_fine;          // 早退扣款
    private float absent_fine;         // 旷工扣款

    private int salary_tax;             // 0：不扣税  1：扣税

    private SalaryFieldBean[] salary_fields; // 自定义字段

    private String _id;
    private String group_id;

    public float getMeal_allowance() {
        return meal_allowance;
    }

    public void setMeal_allowance(float meal_allowance) {
        this.meal_allowance = meal_allowance;
    }

    public float getBusiness_allowance() {
        return business_allowance;
    }

    public void setBusiness_allowance(float business_allowance) {
        this.business_allowance = business_allowance;
    }

    public float getOvertime_allowance() {
        return overtime_allowance;
    }

    public void setOvertime_allowance(float overtime_allowance) {
        this.overtime_allowance = overtime_allowance;
    }

    public float getLate_fine() {
        return late_fine;
    }

    public void setLate_fine(float late_fine) {
        this.late_fine = late_fine;
    }

    public float getLeave_fine() {
        return leave_fine;
    }

    public void setLeave_fine(float leave_fine) {
        this.leave_fine = leave_fine;
    }

    public float getAbsent_fine() {
        return absent_fine;
    }

    public void setAbsent_fine(float absent_fine) {
        this.absent_fine = absent_fine;
    }

    public float getP_pension_pc() {
        return p_pension_pc == -1? 0.08f:p_pension_pc;
    }

    public void setP_pension_pc(float p_pension_pc) {
        this.p_pension_pc = p_pension_pc;
    }

    public float getP_medical_pc() {
        return p_medical_pc == -1? 0.02f:p_medical_pc;
    }

    public void setP_medical_pc(float p_medical_pc) {
        this.p_medical_pc = p_medical_pc;
    }

    public float getP_medical_count() {
        return p_medical_count == -1? 3:p_medical_count;
    }

    public void setP_medical_count(float p_medical_count) {
        this.p_medical_count = p_medical_count;
    }

    public float getP_provident_fund_pc() {
        return p_provident_fund_pc == -1 ? 0.12f:p_provident_fund_pc;
    }

    public void setP_provident_fund_pc(float p_provident_fund_pc) {
        this.p_provident_fund_pc = p_provident_fund_pc;
    }

    public float getP_unemployment_pc() {
        return p_unemployment_pc == -1? 0.002f:p_unemployment_pc;
    }

    public void setP_unemployment_pc(float p_unemployment_pc) {
        this.p_unemployment_pc = p_unemployment_pc;
    }

    public float getC_pension_pc() {
        return c_pension_pc == -1? 0.19f:c_pension_pc;
    }

    public void setC_pension_pc(float c_pension_pc) {
        this.c_pension_pc = c_pension_pc;
    }

    public float getC_medical_pc() {
        return c_medical_pc == -1? 0.1f:c_medical_pc;
    }

    public void setC_medical_pc(float c_medical_pc) {
        this.c_medical_pc = c_medical_pc;
    }

    public float getC_provident_fund_pc() {
        return c_provident_fund_pc == -1? 0.12f:c_provident_fund_pc;
    }

    public void setC_provident_fund_pc(float c_provident_fund_pc) {
        this.c_provident_fund_pc = c_provident_fund_pc;
    }

    public float getC_unemployment_pc() {
        return c_unemployment_pc == -1? 0.01f:c_unemployment_pc;
    }

    public void setC_unemployment_pc(float c_unemployment_pc) {
        this.c_unemployment_pc = c_unemployment_pc;
    }

    public float getC_injury_pc() {
        return c_injury_pc == -1? 0.002f:c_injury_pc;
    }

    public void setC_injury_pc(float c_injury_pc) {
        this.c_injury_pc = c_injury_pc;
    }

    public float getC_birth_pc() {
        return c_birth_pc == -1 ? 0.008f:c_birth_pc;
    }

    public void setC_birth_pc(float c_birth_pc) {
        this.c_birth_pc = c_birth_pc;
    }

    public int getSalary_tax() {
        return salary_tax;
    }

    public void setSalary_tax(int salary_tax) {
        this.salary_tax = salary_tax;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public SalaryFieldBean[] getSalary_fields() {
        return salary_fields;
    }

    public void setSalary_fields(SalaryFieldBean[] salary_fields) {
        this.salary_fields = salary_fields;
    }

    @Override
    public String toString() {
        return "SalaryRuleBean{" +
              "p_pension_pc=" + p_pension_pc +
              ", p_medical_pc=" + p_medical_pc +
              ", p_medical_count=" + p_medical_count +
              ", p_provident_fund_pc=" + p_provident_fund_pc +
              ", p_unemployment_pc=" + p_unemployment_pc +
              ", c_pension_pc=" + c_pension_pc +
              ", c_medical_pc=" + c_medical_pc +
              ", c_provident_fund_pc=" + c_provident_fund_pc +
              ", c_unemployment_pc=" + c_unemployment_pc +
              ", c_injury_pc=" + c_injury_pc +
              ", c_birth_pc=" + c_birth_pc +
              ", meal_allowance=" + meal_allowance +
              ", business_allowance=" + business_allowance +
              ", overtime_allowance=" + overtime_allowance +
              ", late_fine=" + late_fine +
              ", leave_fine=" + leave_fine +
              ", absent_fine=" + absent_fine +
              ", salary_tax=" + salary_tax +
              ", _id='" + _id + '\'' +
              ", group_id='" + group_id + '\'' +
              '}';
    }
}
